package com.liuya.db;

public class JavaBeanObjectNewer implements ObjectNewer , java.io.Serializable {

	private Class clas;

	public JavaBeanObjectNewer(String className) {
		try {
			clas = Class.forName(className);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

	public Object newObject() {
		try {
			return clas.newInstance();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}